package com.nbsaas.boot.no.rest.convert;

import com.nbsaas.boot.no.data.entity.NoSequence;
import com.nbsaas.boot.no.api.domain.request.NoSequenceRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 订单请求对象转换成实体对象
*/

public class NoSequenceEntityConvert  implements Converter<NoSequence, NoSequenceRequest> {

    @Override
    public NoSequence convert(NoSequenceRequest source) {
        NoSequence result = new NoSequence();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

